/**
 * Copyright (C), 2015-2021, XXX有限公司
 * FileName: QuickstartByNameApplication
 * Author:   pengfei.ma
 * Date:     2021/8/26 16:37
 * Description: 创建启动类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.linkedbear.spring.basic_dl.a_quickstart_byname;
import com.linkedbear.spring.basic_dl.a_quickstart_byname.bean.Person;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 〈一句话功能简述〉<br> 
 * 〈创建启动类〉
 *
 * @author pengfei.ma
 * @create 2021/8/26
 * @since 1.0.0
 */
public class QuickstartByNameApplication {
    public static void main(String[] args) throws Exception {
        BeanFactory factory = new ClassPathXmlApplicationContext("basic_dl/quickstart-byname.xml");
        Person person = (Person) factory.getBean("person");
        System.out.println(person);
    }
}